package com.nmsl.sn.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.nmsl.common.annotation.Excel;
import com.nmsl.common.core.domain.BaseEntity;

/**
 * 记录患者处方药品对象 prescription_medicine
 * 
 * @author sn
 * @date 2025-02-21
 */
public class SnPrescriptionMedicine extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 患者处方id（次表用于记录一个处方中包含的药品） */
    @Excel(name = "患者处方id", readConverterExp = "次=表用于记录一个处方中包含的药品")
    private Long prescriptionMedicineId;

    /** 药品id */
    @Excel(name = "药品id")
    private Long medicineId;

    /** 药品数量 */
    @Excel(name = "药品数量")
    private Long medicineNum;

    /** 药品单价 */
    @Excel(name = "药品单价")
    private Long medicinePrice;

    /** 处方信息id */
    @Excel(name = "处方信息id")
    private Long visitRecordId;

    /** 组号 */
    @Excel(name = "组号")
    private Long groupNumber;

    /** 单次用量 */
    @Excel(name = "单次用量")
    private String singleDose;

    /** 用法 */
    @Excel(name = "用法")
    private String usageMed;

    /** 天数 */
    @Excel(name = "天数")
    private String daysMed;

    /** 总量 */
    @Excel(name = "总量")
    private String totalAmount;

    public void setPrescriptionMedicineId(Long prescriptionMedicineId) 
    {
        this.prescriptionMedicineId = prescriptionMedicineId;
    }

    public Long getPrescriptionMedicineId() 
    {
        return prescriptionMedicineId;
    }
    public void setMedicineId(Long medicineId) 
    {
        this.medicineId = medicineId;
    }

    public Long getMedicineId() 
    {
        return medicineId;
    }
    public void setMedicineNum(Long medicineNum) 
    {
        this.medicineNum = medicineNum;
    }

    public Long getMedicineNum() 
    {
        return medicineNum;
    }
    public void setMedicinePrice(Long medicinePrice) 
    {
        this.medicinePrice = medicinePrice;
    }

    public Long getMedicinePrice() 
    {
        return medicinePrice;
    }
    public void setVisitRecordId(Long visitRecordId) 
    {
        this.visitRecordId = visitRecordId;
    }

    public Long getVisitRecordId() 
    {
        return visitRecordId;
    }
    public void setGroupNumber(Long groupNumber) 
    {
        this.groupNumber = groupNumber;
    }

    public Long getGroupNumber() 
    {
        return groupNumber;
    }
    public void setSingleDose(String singleDose) 
    {
        this.singleDose = singleDose;
    }

    public String getSingleDose() 
    {
        return singleDose;
    }
    public void setUsageMed(String usageMed) 
    {
        this.usageMed = usageMed;
    }

    public String getUsageMed() 
    {
        return usageMed;
    }
    public void setDaysMed(String daysMed) 
    {
        this.daysMed = daysMed;
    }

    public String getDaysMed() 
    {
        return daysMed;
    }
    public void setTotalAmount(String totalAmount) 
    {
        this.totalAmount = totalAmount;
    }

    public String getTotalAmount() 
    {
        return totalAmount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("prescriptionMedicineId", getPrescriptionMedicineId())
            .append("medicineId", getMedicineId())
            .append("medicineNum", getMedicineNum())
            .append("medicinePrice", getMedicinePrice())
            .append("visitRecordId", getVisitRecordId())
            .append("groupNumber", getGroupNumber())
            .append("singleDose", getSingleDose())
            .append("usageMed", getUsageMed())
            .append("daysMed", getDaysMed())
            .append("totalAmount", getTotalAmount())
            .toString();
    }
}
